package def

type Store interface {
	Set(key string, value interface{}) error
	Get(key string, value interface{}) error
	Clean(key string) error
}

type ExpireStore interface {
	Store
	Expire(expire int)
	SetExpire(key string, value interface{}, expire int) error
	ChangeExpire(key string, expire int) error
	RefreshExpire(key string) error
}

type StoreFactory interface {
	Store(region string) Store
	Cache(region string) ExpireStore
}
